package com.dx.architectureddd.domain.service;

import com.dx.architectureddd.app.chain.third.ThirdContext;
import com.dx.architectureddd.domain.ThirdServiceEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 支付
 *
 * @author xin.deng
 * @date 2023/10/05
 */
@Slf4j
@Service
public class PaymentServiceImpl implements ThirdService {
    @Override
    public String getType() {
        return ThirdServiceEnum.PAYMENT.getValue();
    }

    @Override
    public void process(ThirdContext context) {
        log.info("第三方服务:{}", context.getStrategyType());
    }
}
